package com.oneonefive.educationsystem.utils;

public class StateChangeUtil {
    public static String userJobChange(Integer job) {
        return switch (job) {
            case 0 -> "教务员";
            case 1 -> "教师";
            case 2 -> "实验员";
            case 3 -> "学生";
            default -> null;
        };
    }

    public static String teaReqStateChange(Integer state) {
        return switch (state) {
            case 0 -> "未排课";
            case 1 -> "已排课";
            default -> null;
        };
    }
    public static String stuReqStateChange(Integer state) {
        return switch (state) {
            case 0 -> "未审核";
            case 1 -> "通过";
            case 2 -> "驳回";
            case 3 -> "使用完毕";
            default -> null;
        };
    }
    public static String semesterChange(Integer state) {
        return switch (state) {
            case 0 -> "";
            case 1 -> "当前学期";
            default -> null;
        };
    }
    public static String labRepChange(Integer state) {
        return switch (state) {
            case 0 -> "未维修";
            case 1 -> "已维修";
            case 2 -> "维修中";
            default -> null;
        };
    }
    public static String labTypeChange(Integer state) {
        return switch (state) {
            case 0 -> "软件";
            case 1 -> "硬件";
            case 2 -> "网络";
            default -> null;
        };
    }

    public static String sectionChange(Integer session) {
        return switch (session) {
            case 0 -> "1~2";
            case 1 -> "3~5";
            case 2 -> "6~7";
            case 3 -> "8~9";
            case 4 -> "10~12";
            case 5 -> "13~15";
            default -> null;
        };
    }

    public static String weekdayChange(Integer weekday) {
        return switch (weekday) {
            case 1 -> "星期一";
            case 2 -> "星期二";
            case 3 -> "星期三";
            case 4 -> "星期四";
            case 5 -> "星期五";
            default -> null;
        };
    }
}
